import request from '@/utils/request'

// 查询用户消息通知列表
export function listMessageNotice(query) {
  return request({
    url: '/coal/messageNotice/list',
    method: 'get',
    params: query
  })
}

// 查询用户消息通知详细
export function getMessageNotice(id) {
  return request({
    url: '/coal/messageNotice/' + id,
    method: 'get'
  })
}

// 新增用户消息通知
export function addMessageNotice(data) {
  return request({
    url: '/coal/messageNotice',
    method: 'post',
    data: data
  })
}

// 修改用户消息通知
export function updateMessageNotice(data) {
  return request({
    url: '/coal/messageNotice',
    method: 'put',
    data: data
  })
}

// 删除用户消息通知
export function delMessageNotice(id) {
  return request({
    url: '/coal/messageNotice/' + id,
    method: 'delete'
  })
}


// 获取用户消息通知
export function getUserNotice() {
  return request({
    url: '/coal/messageNotice/getNotice',
    method: 'get'
  })
}

// 清空操作日志
export function cleanMyMessage() {
  return request({
    url: '/coal/messageNotice/clean',
    method: 'delete'
  })
}
